#include "Thread.hpp"
using namespace MyThread;

void Conter(int num)
{
    while (num--)
    {
        std::cout << "新进程运行中..., " << num << std::endl;
        sleep(1);
    }
}

int main()
{
    int cnt = 5;
    Thread<int> t(Conter, cnt); // cnt是Conter的参数
    t.Start();
    t.Join();
    return 0;
}
